#ifndef _MYDEFINITIONS_H
#define _MYDEFINITIONS_H

#if defined __cplusplus
extern "C"
{
#endif

/************************************************************************************/	
	typedef BOOL (_t_XRay_GetReady) ();	
	typedef BOOL (_t_PrepareReading) (float fTime, WORD Xdim, WORD Ydim);
	typedef BOOL (_t_XRay_RegimOn1) (WORD	U, WORD	I, WORD	time);
	typedef WORD (_t_Move_To) (DIRECTION dir, WORD*	opcode);
	typedef BOOL (_t_XRay_RegimOn2) (void);
	typedef WORD (_t_ReadData) (WORD* Array, WORD Xdim, WORD Ydim);
	typedef BOOL (_t_XRay_RegimOff1) (void);
	typedef WORD (_t_Move_Stop) (WORD* opcode);
	typedef BOOL (_t_CloseReading) (WORD* Array, WORD Xdim, WORD Ydim, bool bRemove);

	typedef WORD (_t_HardwareInit) (char* inifile, WORD* opcode);
	typedef WORD (_t_Move_Init) (void);
	typedef BOOL (_t_XRay_Init) (ErrorData* d);
	
	typedef BOOL (_t_XRay_Reset) (ErrorData* d);
	typedef BOOL (_t_Door_Open) (void);
	typedef BOOL (_t_Door_Close) (void);
	typedef BOOL (_t_Door_State) (bool* OpenSw, bool* CloseSw);
	typedef WORD (_t_Move_Control) ( WORD* opcode );
	typedef void (_t_HardwareStop) (HARDUSERACTION_FUNC func, void* arg);

/************************************************************************************/

#if defined __cplusplus
}
#endif

#endif
